package com.briup.pts.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "用户登录实体")
public class UserLoginDTO implements Serializable {
    @Schema(description = "用户名")
    @Pattern(regexp = "^[0-9A-z_]{5,10}$",message = "用户名必须由5-10的字母数字_组成")
    private String username;
    @Schema(description = "用户密码")
    @Pattern(regexp = "^[0-9A-z_]{5,10}$",message = "密码必须由5-10的字母数字_组成")
    private String password;
}
